<?php
class model_forget extends CI_Model {

	public function __construct()
	{
		$this->load->database();
		//$this->load->library('FClass');
	}
	
	public function selectExists($data)
	{
		$query = $this->db->get_where('cc_member', array($data['col'] =>  $data["val"]));
		return $query->row_array();
	}

	public function updateKey($data)
	{
			$this->db->where('mb_email', $data["email"]);
			$this->db->update('cc_member', array('mb_key_forget'=>$data["key"])); 
	}
	


}